FROM sapk/cloud9

LABEL maintainer="Paul li <dragon_lhp@163.com>"
###########################################################################
# ssh:
###########################################################################
USER root
COPY ./sources.list /etc/apt/sources.list
RUN cat /etc/apt/sources.list
# always run apt update when start and after add new source list, then clean up at end.
RUN rm -Rf /etc/apt/sources.list.d/*  &&\
    apt-get update -yqq
RUN apt-get update -yqq &&  apt-get -y install openssh-server
RUN /bin/echo -e "\nyes\n\nyes" | ssh-keygen -t rsa -C "c9@dnmpp.com"